package com.hy.exception;

/**
 * Created by chairal on 2017/6/24.
 */
public enum ExceptionEnum {

	RECORD_NOT_EXIST(11101, "记录不存在！"),
	RECORD_HAS_LEAF_NODE(11102, "有下级数据不能删除"),
	CODE_REPEAT(11103, "code重复"),
	ID_REPEAT(11104, "id重复"),
	ID_NOT_EMPTY(11104, "id不能为空")
    ;

    ExceptionEnum(int code, String message){
        this.code = code;
        this.message = message;
    }

    private int code;

    private String message;

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
